package design_pattern.FactoryModel2.Product;

/**
 * @Description
 * @Author yangshunjie
 * @Date 2021/9/20
 */
public class ProductB extends Product {
    public String weight;

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "ProductB{" +
                "name='" + name + '\'' +
                ", cod='" + cod + '\'' +
                ", weight='" + weight + '\'' +
                '}';
    }
}
